home *** CD-ROM | disk | FTP | other *** search
- on HideTaskBar
- TopWindows = dosGetTopWindowIDs()
- TaskBarFound = 0
- if ilk(TopWindows, #list) then
- repeat with i = 1 to count(TopWindows)
- CurrWindow = getAt(TopWindows, i)
- if dosGetWindowClassName(CurrWindow) = "Shell_TrayWnd" then
- TaskBarFound = 1
- Success = dosSetWindowState(CurrWindow, "Hidden")
- if not Success then
- put "Can't show or hide the taskbar, error # " & dosGetLastError()
- end if
- exit repeat
- end if
- end repeat
- if not TaskBarFound then
- put "Taskbar window could not be found."
- end if
- end if
- end
-